<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnToUserDeviceInfos extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('user_device_infos', function (Blueprint $table) {
            //
            $table->string('risk_device_id')->default('')->comment('设备号');
            $table->string('risk_device_type')->default('')->comment('设备类型  1=xincheng_web 2=xincheng_and 3=xincheng_ios');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('user_device_infos', function (Blueprint $table) {
            //
            $table->dropColumn(['risk_device_id','risk_device_type']);
        });
    }
}
